

console.log(12399);


//进钱吧
$("#editalischoolType").change(function(){
    var reslist=$("#editalischoolType").select2("data");
    $("#editalischoolTypes").val(payTypes(reslist));
});

$("#alischoolType").change(function(){
    var reslist=$("#alischoolType").select2("data");
    $("#alischoolTypes").val(payTypes(reslist));
});





function editalischool(i) {
    $("#editalischoolxcxAppId").attr("name","payCompanyInfos["+i+"].aliSchoolVo.xcxAppId");
    $("#editalischoolxcxPrivateKey").attr("name","payCompanyInfos["+i+"].aliSchoolVo.xcxPrivateKey");
    $("#editalischoolxcxAlipayPublicKey").attr("name","payCompanyInfos["+i+"].aliSchoolVo.xcxAlipayPublicKey");
    $("#editalischoolcertType").attr("name","payCompanyInfos["+i+"].aliSchoolVo.certType");
    $("#editalischoolschoolStdCode").attr("name","payCompanyInfos["+i+"].aliSchoolVo.schoolStdCode");
    $("#editalischoolschoolStdOutCode").attr("name","payCompanyInfos["+i+"].aliSchoolVo.schoolStdOutCode");
    $("#editalischoolscene").attr("name","payCompanyInfos["+i+"].aliSchoolVo.scene");
    $("#editalischooldk").attr("name","payCompanyInfos["+i+"].aliSchoolVo.dk");
    $("#editalischoolsignCallbackUrl").attr("name","payCompanyInfos["+i+"].aliSchoolVo.signCallbackUrl");
    $("#editalischoolappId").attr("name","payCompanyInfos["+i+"].aliSchoolVo.appId");
    $("#editalischoolprivateKey").attr("name","payCompanyInfos["+i+"].aliSchoolVo.privateKey");
    $("#editalischoolalipayPublicKey").attr("name","payCompanyInfos["+i+"].aliSchoolVo.alipayPublicKey");
    $("#editalischoolxcxAes").attr("name","payCompanyInfos["+i+"].aliSchoolVo.xcxAes");
    $("#editalischoolisvPid").attr("name","payCompanyInfos["+i+"].aliSchoolVo.isvPid");
    $("#editalischoolisvName").attr("name","payCompanyInfos["+i+"].aliSchoolVo.isvName");
    $("#editalischoolmerchantId").attr("name","payCompanyInfos["+i+"].aliSchoolVo.merchantId");
    $("#editalischoolmerchantName").attr("name","payCompanyInfos["+i+"].aliSchoolVo.merchantName");
    $("#editalischoolmerchantPayPid").attr("name","payCompanyInfos["+i+"].aliSchoolVo.merchantPayPid");
    $("#editalischooldzCallbackUrl").attr("name","payCompanyInfos["+i+"].aliSchoolVo.dzCallbackUrl");

    $("#editalischoolTypes").attr("name","payCompanyInfos["+i+"].payType");


    $("#editalischoolType").attr("data-placeholder","请从列表选择一项");
    $("#editalischoolType").attr("required","");

    $("#editalischoolxcxAppId").attr("required","");
    $("#editalischoolxcxPrivateKey").attr("required","");
    $("#editalischoolxcxAlipayPublicKey").attr("required","");
    $("#editalischoolcertType").attr("required","");
    $("#editalischoolschoolStdCode").attr("required","");
    $("#editalischoolschoolStdOutCode").attr("required","");
    $("#editalischoolscene").attr("required","");
    $("#editalischooldk").attr("required","");
    // $("#editalischoolsignCallbackUrl").attr("required","");
    $("#editalischoolappId").attr("required","");
    $("#editalischoolprivateKey").attr("required","");
    $("#editalischoolalipayPublicKey").attr("required","");
    // $("#editalischoolxcxAes").attr("required","");
    $("#editalischoolisvPid").attr("required","");
    $("#editalischoolisvName").attr("required","");
    $("#editalischoolmerchantId").attr("required","");
    $("#editalischoolmerchantName").attr("required","");
    $("#editalischoolmerchantPayPid").attr("required","");
    // $("#editalischooldzCallbackUrl").attr("required","");

}




function alischool(i) {
    console.log(1234)
    $("#alischoolxcxAppId").attr("name","payCompanyInfos["+i+"].aliSchoolVo.xcxAppId");
    $("#alischoolxcxPrivateKey").attr("name","payCompanyInfos["+i+"].aliSchoolVo.xcxPrivateKey");
    $("#alischoolxcxAlipayPublicKey").attr("name","payCompanyInfos["+i+"].aliSchoolVo.xcxAlipayPublicKey");
    $("#alischoolcertType").attr("name","payCompanyInfos["+i+"].aliSchoolVo.certType");
    $("#alischoolschoolStdCode").attr("name","payCompanyInfos["+i+"].aliSchoolVo.schoolStdCode");
    $("#alischoolschoolStdOutCode").attr("name","payCompanyInfos["+i+"].aliSchoolVo.schoolStdOutCode");
    $("#alischoolscene").attr("name","payCompanyInfos["+i+"].aliSchoolVo.scene");
    $("#alischooldk").attr("name","payCompanyInfos["+i+"].aliSchoolVo.dk");
    $("#alischoolsignCallbackUrl").attr("name","payCompanyInfos["+i+"].aliSchoolVo.signCallbackUrl");
    $("#alischoolappId").attr("name","payCompanyInfos["+i+"].aliSchoolVo.appId");
    $("#alischoolprivateKey").attr("name","payCompanyInfos["+i+"].aliSchoolVo.privateKey");
    $("#alischoolalipayPublicKey").attr("name","payCompanyInfos["+i+"].aliSchoolVo.alipayPublicKey");
    $("#alischoolxcxAes").attr("name","payCompanyInfos["+i+"].aliSchoolVo.xcxAes");
    $("#alischoolisvPid").attr("name","payCompanyInfos["+i+"].aliSchoolVo.isvPid");
    $("#alischoolisvName").attr("name","payCompanyInfos["+i+"].aliSchoolVo.isvName");
    $("#alischoolmerchantId").attr("name","payCompanyInfos["+i+"].aliSchoolVo.merchantId");
    $("#alischoolmerchantName").attr("name","payCompanyInfos["+i+"].aliSchoolVo.merchantName");
    $("#alischoolmerchantPayPid").attr("name","payCompanyInfos["+i+"].aliSchoolVo.merchantPayPid");
    $("#alischooldzCallbackUrl").attr("name","payCompanyInfos["+i+"].aliSchoolVo.dzCallbackUrl");

    $("#alischoolTypes").attr("name","payCompanyInfos["+i+"].payType");

    $("#alischoolPayType").attr("data-placeholder","请从列表选择一项");
    $("#alischoolPayType").attr("required","");
}


